//
//  SMACInputSayView.swift
//  SmiraAiChat
//
//  Created by mumu on 2024/9/23.
//

import UIKit

class SMACInputSayView: UIView {
     lazy var sendBtn_SMAC: UIButton = {
        let burron = UIButton.init()
        burron.setImage(UIImage.init(named: "home_icon_send"), for: .normal)
       
        return burron
    }()
    lazy var inputField_SMAC: UITextField = {
        let texf = UITextField.init()
        texf.placeholder = "Say something...."
        texf.backgroundColor = .clear
        texf.leftViewMode = .always
        texf.leftView  = UIView.init(frame: CGRect.init(x: 0, y: 0, width: 20.x_bili, height: 52.x_bili))
        texf.textColor = .white
        texf.font = UIFont(name: "Alibaba Sans Thai", size: 14.x_bili)
        return texf
    }()
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.7800)
        self.layer.cornerRadius = 26.x_bili
        layer.masksToBounds = true
        
        addSubview(inputField_SMAC)
        addSubview(sendBtn_SMAC)
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
